class RunsController < ApplicationController
  
  before_filter :get_web_spec
  
  def create
    @run = @web_spec.runs.create(params[:run])
    @run.start!
    redirect_to @web_spec
  end
  
  private
  
  def get_web_spec
    @web_spec = WebSpec.find(params[:web_spec_id])    
  end
  
end
